<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- 导入 layui的样式 -->
  <link rel="stylesheet" href="../assets/lib/layui/css/layui.css">
  <style>
    .wrapper {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 500px;
      height: 500px;
      padding: 15px;
      background-color: skyblue;
      transform: translate(-50%, -50%);
    }
  </style>
</head>

<body>
  <div class="wrapper">
    <form class="layui-form" lay-filter="user_info">
      <div class="layui-form-item">
        <label class="layui-form-label">账号</label>
        <div class="layui-input-block">
          <input type="text" name="username" required lay-verify="required|username" placeholder="请输入账号"
            autocomplete="off" class="layui-input">
        </div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">密码</label>
        <div class="layui-input-block">
          <input type="text" name="pwd" required lay-verify="required" placeholder="请输入密码" autocomplete="off"
            class="layui-input">
        </div>
      </div>
      <div class="layui-form-item">
        <div class="layui-input-block">
          <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
          <button type="button" class="layui-btn layui-btn-primary" id="btn_exit">退出</button>
        </div>
      </div>
    </form>
  </div>


  <!-- 导入layui的js文件 -->
  <script src="../assets/lib/layui/layui.all.js"></script>
  <!-- 导入JQuery -->
  <script src="../assets/lib/jquery.js"></script>
  <script src="./test.js"></script>
</body>

</html>